### RSYNCHOURLY.SH

RSYNC must be executed with suitable parameters to perform synchronization. The sample shell script that follows directs a single synchronization process. CRON can also use the script on an hourly basis to ensure that both servers are synchronized regularly.

    rsync -qruW 10.0.0.1::MV_IPTel_data/ /opt/ecs/mvuser/MV_IPTel/data/
    FTPdata

    rsync -qruW 10.0.0.1::MV_IPTel_TFTPdata/ /opt/ecs/mvuser/MV_IPTel/
    data/TFTPdata

Optional:

    rsync -qruW 10.0.0.1::MV_IPTel_HTTPdata/ /opt/ecs/mvuser/MV_IPTel/
    data/HTTPdata

Copy this file to “/etc/cron.hourly”. Restart the CRON daemon to regularly execute the job. This file is NOT the same for both servers. The IP address at the start of the parameters is the source of files on the remote server, and so will be the “other” server for both servers. To clarify this, server A must have server B’s IP address and vice-versa. The remaining arguments define the RSYNC symbolic name on the “other” machine and the local file structure to be used as a target for RSYNC.